package com.panda.rentHouse.dao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.panda.common.dao.BaseRepository;
import com.panda.rentHouse.pojo.User;

public interface UserDao extends BaseRepository<User, Integer>{
	
	@Query(nativeQuery = true, value = " select * from user where name=:name and password=:password ")
	User findByNameAndPassword(@Param("name") String name, @Param("password")String password) throws Exception;
	
}
